package io.renren;

import com.spring4all.swagger.EnableSwagger2Doc;
import io.swagger.annotations.Api;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.WebApplicationInitializer;
//import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

//@EnableEurekaClient
@SpringBootApplication
//@EnableSwagger2Doc
//@Api("APP")
//@EnableFeignClients
//public class SysClientAppApplication {
//    public static void main(String[] args) {
//        SpringApplication.run(SysClientAppApplication.class, args);
//    }
//}
public class SysClientAppApplication extends SpringBootServletInitializer implements WebApplicationInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application){
//        System.out.print("==========启动类1."+"\n");
        return application.sources(SysClientAppApplication.class);
    }
    public static void main(String[] args) {
//        System.out.print("==========启动类2."+"\n");
        SpringApplication.run(SysClientAppApplication.class, args);
    }
}